<template>
    <div>
      测试页面
    </div>
</template>

<script>
  import api from '@/api/api'
    export default {
        name: "test",
        created () {
          api.post("www.facebook.com").then(res => {
            console.log("请求成功")
          }).catch((error) => {
            console.log("error", error)
            console.log("请求失败了")
          })
        }
    }
</script>

<style scoped>

</style>
